package com.lins.common.common.exception;

import com.lins.common.common.enums.CodeEnum;

/**
 * @author linsir
 * @title: BusinessException
 * @projectName lins
 * @description: 业务异常
 * @date 2021/12/9 9:58
 */
public class BusinessException extends RuntimeException {

    private static final long serialVersionUID = 6610083281801529147L;

    CodeEnum codeEnum;


    public BusinessException(CodeEnum codeEnum) {
        this.codeEnum = codeEnum;
    }

    public BusinessException(String message) {
        super(message);
    }
}
